using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;

namespace TimeForing.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {

            return View(new IndexViewModel ());
        }



        //
        // Post /Home/
        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult Index(FormCollection collection)
        {
            string user = collection["Users"];
            string week = collection["Weeks"];
            return RedirectToAction("Index", "TimeReg", new { user = user.ToString(), week = week });
            
        }

        //
        // GET: /Home/
        public ActionResult Settings()
        {
            return View();
        }
      
    }
}
